package com.woniuxy.carrental.mapper;

import com.woniuxy.carrental.entity.Loss;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-09-28 11:50
 */
//肖某仓库报损订单接口类
public interface LossMapper {

    //添加报损名单
    void addLoss(Loss loss);

    //查询展示所有报损订单
    List<Loss> selectAllLoss();

    //分页查询报损名单
    public List<Loss> selectLossByPage(@Param("loss")Loss loss, @Param("pageIndex") int pageIndex,
                                          @Param("pageSize") int pageSize);
    //分页查询数据条数
    public int selectCountLossByPage(@Param("loss")Loss loss);

//    //查询总条数据
    public int selectCountLoss();

    //根据id查询表中指定数据
    public Loss selectOne(int id);


    //修改报损名单根据属性id
    void updataLoss(@Param("loss")Loss loss);

    //删除报损名单根据ID
    void deleteLoss(@Param("id")int id);

    //
}
